//
//  CarManager.h
//  citycar
//
//  Created by Tang JiaQi on 3/30/11.
//  Copyright 2011 HOME. All rights reserved.
//

#import "cocos2d.h"
#import "CarDef.h"
#include "math/TMath_Header.h"

@class Car;

@interface CarManager : CCLayer{
	NSMutableArray* aiCars;
	NSMutableArray* userCars;
}
@property(nonatomic, retain)	NSMutableArray* aiCars;
@property(nonatomic, retain)	NSMutableArray* userCars;

+(CarManager*) sharedCarManager;
-(void) updateCars: (ccTime)dt;
-(Car*) getUserCar;
-(Car*) addCar: (CarRole) role carType: (CarType) type initPos: (CGPoint)pos initVelocity: (TsiU::Vec2)vel initOrientation: (TsiU::Vec2)ori;

@end
